<?
require_once('functions.php');
require_once('Users.php');
function GetKeywords()
{
        $con = GetConnection();
		$db = mysql_select_db("eCommerce",$con);
        $sql = "SELECT * from Key_Words";
		return $results = mysql_query($sql,$con);
}
function GetPosition($id)
{
		$keywords = GetKeywords();
		while($krow = mysql_fetch_assoc($keywords))
        {
			if($krow['id'] == $id)
			{
				return $krow['position'];	
			}
		}
}
